/**
 * Returns current user info in json format.
 */
function main() {
	var info={};
	info.username=person.properties["{http://www.alfresco.org/model/content/1.0}userName"];
	info.firstname=person.properties["{http://www.alfresco.org/model/content/1.0}firstName"];
	info.lastname=person.properties["{http://www.alfresco.org/model/content/1.0}lastName"];
	info.email=person.properties["{http://www.alfresco.org/model/content/1.0}email"];
	info.organization=person.properties["{http://www.alfresco.org/model/content/1.0}organizationId"];
	model.userinfo=jsonUtils.toJSONString(info);
}

main();